package com.hxzy.mapper;

import com.hxzy.pojo.OperateLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author wzm
 * @create 2024-03-12 16:58
 * project_name:JavaWeb2401
 * @Description
 */
//对增删改日志进行操作的mapper
@Mapper
public interface OperateLogMapper {
    //新增日志的方法
    @Insert("insert into operate_log(operate_user,operate_time,class_name, method_name, method_params, return_value,cost_time)" +
            " values(#{operateUser},#{operateTime},#{className},#{methodName},#{methodParams},#{returnValue},#{costTime})")
    void insertLog(OperateLog operateLog);

}
